CREATE OR REPLACE TRIGGER trg_tasks
	BEFORE INSERT ON tasks
	FOR EACH ROW
BEGIN
	SELECT seq_tasks.NEXTVAL
		INTO :NEW.id
		FROM dual;
END trg_tasks;
/
